<template>
  <div>
    <el-container>
      <el-header>
        <h1>后台管理系统</h1>
        <el-button type="info" class="btn1" @click="$router.go(-1)"
          >退出</el-button
        >
      </el-header>
      <el-container>
        <el-aside :width="collapse ? '50px' : '200px'">
          <div @click="collapse = !collapse" class="collapse">| | |</div>
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b"
          >
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>导航一</span>
              </template>
              <el-menu-item-group>
                <template slot="title">分组一</template>
                <el-menu-item index="1-1">选项1</el-menu-item>
                <el-menu-item index="1-2">选项2</el-menu-item>
              </el-menu-item-group>
              <el-menu-item-group title="分组2">
                <el-menu-item index="1-3">选项3</el-menu-item>
              </el-menu-item-group>
              <el-submenu index="1-4">
                <template slot="title">选项4</template>
                <el-menu-item index="1-4-1">选项1</el-menu-item>
              </el-submenu>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main> </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "MyAppConnect",
  data() {
    return {
      collapse: false,
    };
  },

  mounted() {},

  methods: {
    handleOpen(){

    },
    handleClose(){
      
    }
  },
};
</script>

<style  scoped>
.el-header,
.el-footer {
  background-color: #133145;
  color: #333;
  width: 100%;
  /* text-align: center; */
  /* line-height: 60px; */
  float: left;
}
.btn1 {
  float: right;
  margin-top: -60px;
}
h1 {
  color: #fff;
}
.el-aside {
  background-color: #133145;
  color: #333;
  text-align: center;
  /* line-height: 200px; */
}
.collapse {
  font-size: 24px;
  color: #000;
  text-align: center;
}
.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>